<template>
   <div id="app">
    <header>
      <router-view name="header" />
    </header>
    <main>

        <router-view/>

    </main>
    <footer>
      <router-view name="footer" />
    </footer>
  </div>
</template>

<style lang="less">
  html, body, #app {
    width: 100%;
    height: 100%;
  }
  #app {
    display: flex;
    flex-direction: column;

    main {
      flex: 1;
      overflow-y: auto;
    }
  }
</style>
